//
//  YbrUserPlayListDao.h
//  wifibox
//
//  Created by os X 10.9 on 14-12-5.
//  Copyright (c) 2014年 yinbaner. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "YbrClassInfoItem.h"
#import "YbrHttpMyBagItem.h"
#import "YbrMusicItem.h"



@interface YbrUserPlayListDao : NSObject


-(BOOL) removePlaylistById:(NSUInteger) _id;
-(BOOL) removePlayMusicById:(int)playId musicId:(int)muiscId;

// 这里放置的是Playlist对象
-(NSArray *) getAllPlayList;
-(int) getMusicNumById:(int)playlistId;
-(int) addPlaylist:(NSString *)name;


// 这里的NsArray里面放置的是Music对象
-(NSArray *) getMusicListById:(int) playListId;
-(NSString *) getPlaylistNameById:(int) playListId;
-(BOOL) renamePlayList:(int) playListId name:(NSString *)name;


// 这里是Integter对象
-(NSArray *) getHaveIdsPlaylist:(int) musicId;
-(BOOL) setMusicToPlaylistByClassInfoItem:(int) playlist classInfo:(YbrClassInfoItem *) classInfo;
-(BOOL) setMusicToPlaylistByHttpMyBagItem:(int) playlist httpMyBagItem:(YbrHttpMyBagItem *) httpMyBag;
-(BOOL) isHavePlaylistName:(int) musicid playlistId:(int) playlistId;
-(BOOL) isHaveName:(NSString *) name;


// 获得不重复的名称
-(NSString *) getPlaylistNameNoRep;

-(BOOL) setMusicToPlaylistByClassInfoItem:(int) playlist classInfo:(YbrClassInfoItem *) classInfo courseName:(NSString *)courseName channelName:(NSString *) channelName img:(NSString *) img;
-(BOOL) setMusicToPlaylistByMusicHall:(int) playlist classInfo:(YbrClassInfoItem *) classInfo ybrchannelName:(NSString *)ybrchannelName;

-(BOOL) setMusicToPlaylistByLocalMusic:(int) playlist musicItem:(YbrMusicItem *) musicItem;



@end
